/* eslint-disable */
require('babel-polyfill')
require("react-hot-loader/patch")

import React from 'react'
import ReactDOM from 'react-dom'
import FastClick from 'utils/FastClick'
import { AppContainer } from 'react-hot-loader'
import App from './App'
import './utils/stat'

import './styles/base.scss'

FastClick.attach(document.body)

const render = (Component) => {
  ReactDOM.render(
    <AppContainer>
      <Component />
    </AppContainer>,
    document.getElementById('root'),
  )
}

render(App)

if (module.hot) {
  module.hot.accept('./App', () => { render(App) })
}
